package com.lening.collect.controller;


import com.lening.collect.dto.RecordDTO;
import com.lening.collect.pojo.Record;
import com.lening.collect.service.IRecordService;
import com.lening.common.base.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.client.WebClient;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@RestController
@RequestMapping("/record")
public class RecordController extends BaseController<Record, RecordDTO, IRecordService> {
    @Resource
    private IRecordService recordService;
    @Resource
    private WebClient webClient;

    public int adda(Long total) {
       return recordService.add(total);

    }
}
